package com.zsy.service.Impl;

import com.zsy.mapper.region_Mapper;
import com.zsy.pojo.Electric_Power;
import com.zsy.pojo.RegionInfo;
import com.zsy.pojo.month;
import com.zsy.service.region_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

@Service
public class region_ServiceImpl implements region_Service {

    @Autowired
    private region_Mapper region_mapper;

    @Override
    public List<RegionInfo> getName() {
        return region_mapper.getName();
    }

    @Override
    public List<Electric_Power> SearchInfo(String name, int loadName, LocalDate data) {
        return region_mapper.SearchInfo(name, loadName, data);
    }

    @Override
    public double TotalElectric(String name, int loadName, LocalDate data) {
        return region_mapper.TotalElectric(name, loadName, data);
    }

    @Override
    public int TotalRegion() {
        return region_mapper.TotalRegion();
    }

    @Override
    public double AvgTemperature(String name, int loadName, LocalDate data) {
        return region_mapper.AvgTemperature(name, loadName, data);
    }

    @Override
    public List<Electric_Power> SearchInfo_no_load_name(String name, LocalDate data) {
        return region_mapper.SearchInfo_no_load_name(name,data);
    }

    @Override
    public List<month> monthly_power_2023() {
        return region_mapper.monthly_power_2023();
    }

    @Override
    public List<month> monthly_power_2024() {
        return region_mapper.monthly_power_2024();
    }
}
